//
//  myData.h
//  Sqlite 数据库
//
//  Created by 董骎 on 14-5-12.
//  Copyright (c) 2014年 董骎. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
@interface myData : NSObject
{
    sqlite3 *mySql;
}
-(NSString *)getDocPath;
-(BOOL)initData;
-(BOOL)creatDataDishTable;
-(BOOL)creatDataHowToDoTable;
-(BOOL)creatDataMainMaterial;
-(BOOL)creatDataAuxiliaryMaterial;

-(BOOL)insertData:(NSString *)name title:(NSString *)title  info:(NSString *)info tableName:(NSString *)tableName introduction:(NSString *)introduction smallImg:(NSString *)smallImg ;
-(BOOL)deleteTestList:(NSString *)name tableName:(NSString *)tableName;
-(BOOL)updataData:(NSString *)name PassWord:(int)pass Rowid:(int)rowid;
-(NSMutableArray *)selectData;
-(NSMutableArray *)selectHowToDo:(NSString *)tableName :(NSString *)keyWord;

@end
